<template>
    <div>
        用户页
        <div>路由参数 key:{{ this.$route.params.key }}</div>
        <div>跨组件状态值{{ counterStore.count }}</div>


    </div>
</template>

<script>
import { mapStores } from 'pinia'
import { useCounterStore } from '../stores/counter'
    export default {
        computed:{
            ...mapStores(useCounterStore)
        }
        
    }
</script>

<style scoped>

</style>